const router = require('koa-router')()
const { getCarousel, getPetTalentList, getRecommendList, searchList } = require("../controller/homeController")

// 首页获取轮播图数据
router.get('/carousel', getCarousel)
// 首页获取养宠达人列表
router.get('/talent', getPetTalentList)
// 首页获取人气推荐列表
router.get('/recommend', getRecommendList)
// 根据品种搜索宠物列表
router.get('/search', searchList)

module.exports = router